package com.ft.oa.service.customer;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ft.oa.domain.customer.CustomerSupplier;
import com.ft.oa.web.customer.rq.CustomerSupplierPage;

import java.util.List;

public interface CustomerSupplierService {

    /**
     * 分页查询供应商资料
     * @param
     * @param
     * @return
     */
    public Page<CustomerSupplier> selectCustomerSupplier(CustomerSupplierPage customerSupplierPage);

    /**
     * 添加供应商信息
     * @param customerSupplier
     * @return
     */
    public int insertCustomerSupplier(CustomerSupplier customerSupplier);

    /**
     * 修改供应商信息
     * @param customerSupplier
     * @return
     */
    public int updateCustomerSupplier(CustomerSupplier customerSupplier);

    /**
     * 删除供应商信息
     * @param
     * @return
     */
    public int deleteCustomerSupplier(CustomerSupplier customerSupplier);

    /**
     * 查询供应商全部信息
     * @return
     */
    public List<CustomerSupplier> select();

    /**
     * 根据ID查询供应商详情
     * @param customerSupplier
     * @return
     */
    public CustomerSupplier selectById(CustomerSupplier customerSupplier);

}
